package com.alpesressources.comexpert;

import java.io.IOException;
import java.util.HashMap;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletResponse;

import com.alpesressources.comexpert.bo.IObject;

public abstract class AAction {
	private String token;

	public abstract void processGet(ServletConfig config,
			HashMap<String, Object> queryString, HttpServletResponse response)
			throws ServletException, IOException;

	public abstract void processPost(ServletConfig config,
			HashMap<String, Object> queryString, IObject postRequest,
			HttpServletResponse response) throws ServletException, IOException;

	public void setToken(String token) {
		this.token = token;
	}

	public String getToken() {
		return token;
	}

	public abstract Class<?> getObjectClass();
}
